/*
 *  Copyright 2023 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

@import (reference) '../../../styles/variables.less';

.following-widget-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  .ant-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0;
    overflow: hidden;
  }
  .widget-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  .entity-list-body {
    flex: 1;
    padding: @size-mlg @size-mlg @size-xxs @size-mlg;
    margin: 0;
    overflow-y: auto;
    min-height: 0;
  }
  .following-widget-icon {
    svg {
      fill: none;
    }
  }

  .following-widget-list-item {
    border: 1px solid @grey-2;
    background-color: @grey-29;
    max-width: 100%;
    overflow: hidden;
    .item-link {
      flex-grow: 1 !important;
      flex: 1 1 0%;
    }
    .item-link:hover {
      text-decoration: none;
    }

    .entity-button:hover {
      background: transparent;
    }
    .entity-button-icon {
      height: 32px;
      width: 32px;
      svg {
        height: 100%;
        width: 100%;
      }
    }
  }
}
